home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-08-18 | 5.1 KB | [ TEXT/MPS ]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, Thu Aug 18 20:27:53 1994, modified Thu Aug 18 20:27:53 1994, creator 'MPS ', type ASCII, 4599 bytes "Fader.h" magic text fragment for file(1) cmd, 1st line "#ifndef __FADER__", 2nd line "#define __FADER__", 3rd line "/*", 4th line "%09DarkSide - a 7.0 dependant, system clean expandable screen saver.", 5th line "%09", at 0x1277 428 bytes resource magic text fragment for file(1) cmd, 1st line "#ifndef __FADER__", 2nd line "#define __FADER__", 3rd line "/*", 4th line "%09DarkSide - a 7.0 dependant, system clean expandable screen saver.", 5th line "%09"
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ MPS ]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 07 46 61 64 65 72 2e | 68 00 00 00 00 00 00 00 |..Fader.|h.......| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......| |00000050| 00 00 00 00 00 11 f7 00 | 00 01 ac aa 79 ad 09 aa |........|....y...| |00000060| 79 ad 09 00 00 0c 00 00 | 00 00 00 00 00 00 00 00 |y.......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a5 eb 00 00 |........|........| |00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 46 41 44 45 52 5f |#ifndef |__FADER_| |00000090| 5f 0d 23 64 65 66 69 6e | 65 20 5f 5f 46 41 44 45 |_.#defin|e __FADE| |000000a0| 52 5f 5f 0d 2f 2a 0d 09 | 44 61 72 6b 53 69 64 65 |R__./*..|DarkSide| |000000b0| 20 2d 20 61 20 37 2e 30 | 20 64 65 70 65 6e 64 61 | - a 7.0| dependa| |000000c0| 6e 74 2c 20 73 79 73 74 | 65 6d 20 63 6c 65 61 6e |nt, syst|em clean| |000000d0| 20 65 78 70 61 6e 64 61 | 62 6c 65 20 73 63 72 65 | expanda|ble scre| |000000e0| 65 6e 20 73 61 76 65 72 | 2e 0d 09 0d 09 63 6f 70 |en saver|.....cop| |000000f0| 79 72 69 67 68 74 20 a9 | ca 31 39 39 30 2d 31 39 |yright .|.1990-19| |00000100| 39 34 20 62 79 20 54 6f | 6d 20 44 6f 77 64 79 0d |94 by To|m Dowdy.| |00000110| 09 41 6c 6c 20 72 69 67 | 68 74 73 20 72 65 73 65 |.All rig|hts rese| |00000120| 72 76 65 64 2e 0d 09 0d | 09 54 68 69 73 20 68 65 |rved....|.This he| |00000130| 61 64 65 72 20 66 69 6c | 65 20 64 65 66 69 6e 65 |ader fil|e define| |00000140| 73 20 74 68 65 20 69 6e | 74 65 72 66 61 63 65 20 |s the in|terface | |00000150| 62 65 74 77 65 65 6e 20 | 44 61 72 6b 53 69 64 65 |between |DarkSide| |00000160| 20 61 6e 64 20 6f 6e 65 | 20 6f 66 0d 09 69 74 73 | and one| of..its| |00000170| 20 66 61 64 65 72 73 2e | 0d 0d 2a 2f 0d 0d 23 69 | faders.|..*/..#i| |00000180| 66 6e 64 65 66 20 5f 5f | 54 59 50 45 53 5f 5f 0d |fndef __|TYPES__.| |00000190| 09 23 69 6e 63 6c 75 64 | 65 20 3c 54 79 70 65 73 |.#includ|e <Types| |000001a0| 2e 68 3e 0d 23 65 6e 64 | 69 66 0d 23 69 66 6e 64 |.h>.#end|if.#ifnd| |000001b0| 65 66 20 5f 5f 4f 53 55 | 54 49 4c 53 5f 5f 0d 09 |ef __OSU|TILS__..| |000001c0| 23 69 6e 63 6c 75 64 65 | 20 3c 4f 53 55 74 69 6c |#include| <OSUtil| |000001d0| 73 2e 68 3e 0d 23 65 6e | 64 69 66 0d 23 69 66 6e |s.h>.#en|dif.#ifn| |000001e0| 64 65 66 20 5f 5f 51 55 | 49 43 4b 44 52 41 57 5f |def __QU|ICKDRAW_| |000001f0| 5f 0d 09 23 69 6e 63 6c | 75 64 65 20 3c 51 75 69 |_..#incl|ude <Qui| |00000200| 63 6b 44 72 61 77 2e 68 | 3e 0d 23 65 6e 64 69 66 |ckDraw.h|>.#endif| |00000210| 0d 23 69 66 6e 64 65 66 | 20 5f 5f 53 4f 55 4e 44 |.#ifndef| __SOUND| |00000220| 5f 5f 0d 09 23 69 6e 63 | 6c 75 64 65 20 3c 53 6f |__..#inc|lude <So| |00000230| 75 6e 64 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 0d 23 |und.h>.#|endif..#| |00000240| 64 65 66 69 6e 65 09 70 | 72 65 66 6c 69 67 68 74 |define.p|reflight| |00000250| 46 61 64 65 72 09 09 30 | 0d 23 64 65 66 69 6e 65 |Fader..0|.#define| |00000260| 20 69 6e 69 74 69 61 6c | 69 7a 65 46 61 64 65 72 | initial|izeFader| |00000270| 09 09 31 0d 23 64 65 66 | 69 6e 65 20 69 64 6c 65 |..1.#def|ine idle| |00000280| 46 61 64 65 72 09 09 09 | 32 0d 23 64 65 66 69 6e |Fader...|2.#defin| |00000290| 65 20 64 69 73 70 6f 73 | 65 46 61 64 65 72 09 09 |e dispos|eFader..| |000002a0| 33 0d 23 64 65 66 69 6e | 65 20 75 70 64 61 74 65 |3.#defin|e update| |000002b0| 46 61 64 65 72 09 09 09 | 34 0d 23 64 65 66 69 6e |Fader...|4.#defin| |000002c0| 65 20 68 69 74 46 61 64 | 65 72 09 09 09 35 0d 0d |e hitFad|er...5..| |000002d0| 2f 2f 20 69 6e 66 6f 20 | 61 62 6f 75 74 20 61 20 |// info |about a | |000002e0| 73 63 72 65 65 6e 0d 74 | 79 70 65 64 65 66 20 73 |screen.t|ypedef s| |000002f0| 74 72 75 63 74 0d 09 7b | 0d 09 52 65 63 74 09 09 |truct..{|..Rect..| |00000300| 62 6f 75 6e 64 73 3b 09 | 09 09 09 09 2f 2f 20 62 |bounds;.|....// b| |00000310| 6f 75 6e 64 73 20 6f 66 | 20 74 68 61 74 20 73 63 |ounds of| that sc| |00000320| 72 65 65 6e 20 77 69 74 | 68 69 6e 20 6f 75 72 20 |reen wit|hin our | |00000330| 77 69 6e 64 6f 77 0d 09 | 42 6f 6f 6c 65 61 6e 09 |window..|Boolean.| |00000340| 09 69 73 43 6f 6c 6f 72 | 3b 09 09 09 09 2f 2f 20 |.isColor|;....// | |00000350| 63 6f 6c 6f 72 20 6f 72 | 20 62 77 2f 67 72 61 79 |color or| bw/gray| |00000360| 0d 09 73 68 6f 72 74 09 | 09 64 65 70 74 68 3b 09 |..short.|.depth;.| |00000370| 09 09 09 09 2f 2f 20 64 | 65 70 74 68 20 69 6e 20 |....// d|epth in | |00000380| 70 69 78 65 6c 73 0d 09 | 47 44 48 61 6e 64 6c 65 |pixels..|GDHandle| |00000390| 09 74 68 65 44 65 76 69 | 63 65 3b 09 09 09 09 2f |.theDevi|ce;..../| |000003a0| 2f 20 64 65 76 69 63 65 | 20 74 68 61 74 20 67 6f |/ device| that go| |000003b0| 65 73 20 77 69 74 68 20 | 74 68 61 74 20 73 63 72 |es with |that scr| |000003c0| 65 65 6e 0d 09 0d 09 73 | 68 6f 72 74 09 09 6f 72 |een....s|hort..or| |000003d0| 69 67 69 6e 61 6c 44 65 | 70 74 68 3b 09 09 09 2f |iginalDe|pth;.../| |000003e0| 2f 20 64 65 70 74 68 20 | 62 65 66 6f 72 65 20 61 |/ depth |before a| |000003f0| 6e 79 20 63 68 61 6e 67 | 65 73 0d 09 73 68 6f 72 |ny chang|es..shor| |00000400| 74 09 09 6f 72 69 67 69 | 6e 61 6c 46 6c 61 67 73 |t..origi|nalFlags| |00000410| 3b 09 09 09 2f 2f 20 6f | 72 69 67 69 6e 61 6c 20 |;...// o|riginal | |00000420| 64 65 76 69 63 65 20 66 | 6c 61 67 73 0d 09 73 68 |device f|lags..sh| |00000430| 6f 72 74 09 09 77 68 69 | 63 68 46 6c 61 67 73 43 |ort..whi|chFlagsC| |00000440| 68 61 6e 67 65 64 3b 09 | 09 2f 2f 20 77 68 69 63 |hanged;.|.// whic| |00000450| 68 20 66 6c 61 67 73 20 | 77 65 20 63 68 61 6e 67 |h flags |we chang| |00000460| 65 64 0d 09 0d 09 48 61 | 6e 64 6c 65 09 09 73 63 |ed....Ha|ndle..sc| |00000470| 72 65 65 6e 47 61 6d 6d | 61 3b 09 09 09 2f 2f 20 |reenGamm|a;...// | |00000480| 63 6f 70 79 20 6f 66 20 | 74 68 65 20 73 63 72 65 |copy of |the scre| |00000490| 65 6e 27 73 20 6f 72 69 | 67 69 6e 61 6c 20 67 61 |en's ori|ginal ga| |000004a0| 6d 6d 61 20 74 61 62 6c | 65 0d 09 73 68 6f 72 74 |mma tabl|e..short| |000004b0| 09 09 62 72 69 67 68 74 | 6e 65 73 73 3b 09 09 09 |..bright|ness;...| |000004c0| 09 2f 2f 20 63 75 72 72 | 65 6e 74 20 6d 6f 6e 69 |.// curr|ent moni| |000004d0| 74 6f 72 20 62 72 69 67 | 68 74 6e 65 73 73 20 28 |tor brig|htness (| |000004e0| 30 2d 32 35 35 29 0d 09 | 73 68 6f 72 74 09 09 6e |0-255)..|short..n| |000004f0| 65 77 42 72 69 67 68 74 | 6e 65 73 73 3b 09 09 09 |ewBright|ness;...| |00000500| 2f 2f 20 6e 65 77 20 6d | 6f 6e 69 74 6f 72 20 62 |// new m|onitor b| |00000510| 72 69 67 68 74 6e 65 73 | 73 20 74 6f 20 73 65 74 |rightnes|s to set| |00000520| 20 28 30 2d 32 35 35 29 | 0d 09 7d 20 53 63 72 65 | (0-255)|..} Scre| |00000530| 65 6e 49 6e 66 6f 2c 20 | 2a 53 63 72 65 65 6e 49 |enInfo, |*ScreenI| |00000540| 6e 66 6f 50 74 72 3b 0d | 09 09 0d 2f 2f 20 73 74 |nfoPtr;.|...// st| |00000550| 6f 72 61 67 65 20 66 6f | 72 20 74 68 65 20 75 73 |orage fo|r the us| |00000560| 65 72 27 73 20 73 65 74 | 74 69 6e 67 73 0d 23 64 |er's set|tings.#d| |00000570| 65 66 69 6e 65 20 6e 75 | 6d 53 68 6f 72 74 73 09 |efine nu|mShorts.| |00000580| 32 30 0d 23 64 65 66 69 | 6e 65 20 6e 75 6d 53 74 |20.#defi|ne numSt| |00000590| 72 69 6e 67 73 09 34 0d | 74 79 70 65 64 65 66 20 |rings.4.|typedef | |000005a0| 73 74 72 75 63 74 0d 09 | 7b 0d 09 73 68 6f 72 74 |struct..|{..short| |000005b0| 09 09 09 09 74 68 65 53 | 68 6f 72 74 73 5b 6e 75 |....theS|horts[nu| |000005c0| 6d 53 68 6f 72 74 73 5d | 3b 0d 09 53 74 72 32 35 |mShorts]|;..Str25| |000005d0| 35 09 09 09 09 74 68 65 | 53 74 72 69 6e 67 73 5b |5....the|Strings[| |000005e0| 6e 75 6d 53 74 72 69 6e | 67 73 5d 3b 0d 09 7d 20 |numStrin|gs];..} | |000005f0| 53 65 74 74 69 6e 67 73 | 42 6c 6f 63 6b 2c 20 2a |Settings|Block, *| |00000600| 53 65 74 74 69 6e 67 73 | 50 74 72 3b 0d 0d 2f 2f |Settings|Ptr;..//| |00000610| 20 63 75 72 72 65 6e 74 | 6c 79 20 73 75 70 70 6f | current|ly suppo| |00000620| 72 74 65 64 20 6f 70 74 | 69 6f 6e 73 0d 23 64 65 |rted opt|ions.#de| |00000630| 66 69 6e 65 20 6b 65 79 | 41 6e 64 4d 6f 75 73 65 |fine key|AndMouse| |00000640| 55 6e 66 61 64 65 09 09 | 30 78 30 30 30 31 09 2f |Unfade..|0x0001./| |00000650| 2f 20 30 20 69 66 20 66 | 61 64 65 72 20 69 73 20 |/ 0 if f|ader is | |00000660| 61 6c 6c 6f 77 69 6e 67 | 20 6b 65 79 73 74 72 6f |allowing| keystro| |00000670| 6b 65 73 2f 6d 6f 75 73 | 65 20 6d 6f 74 69 6f 6e |kes/mous|e motion| |00000680| 0d 23 64 65 66 69 6e 65 | 20 66 61 64 65 72 52 65 |.#define| faderRe| |00000690| 71 75 65 73 74 73 55 6e | 66 61 64 65 09 09 30 78 |questsUn|fade..0x| |000006a0| 30 30 30 32 09 2f 2f 20 | 31 20 69 66 20 66 61 64 |0002.// |1 if fad| |000006b0| 65 72 20 77 69 73 68 65 | 73 20 74 6f 20 63 61 75 |er wishe|s to cau| |000006c0| 73 65 20 61 6e 20 75 6e | 66 61 64 65 0d 23 64 65 |se an un|fade.#de| |000006d0| 66 69 6e 65 20 66 61 64 | 65 72 52 65 71 75 65 73 |fine fad|erReques| |000006e0| 74 73 4e 6f 57 69 6e 64 | 6f 77 20 09 30 78 30 30 |tsNoWind|ow .0x00| |000006f0| 30 34 09 2f 2f 20 31 20 | 69 66 20 66 61 64 65 72 |04.// 1 |if fader| |00000700| 20 77 69 73 68 65 73 20 | 6e 6f 20 66 61 64 65 20 | wishes |no fade | |00000710| 77 69 6e 64 6f 77 0d 23 | 64 65 66 69 6e 65 20 69 |window.#|define i| |00000720| 67 6e 6f 72 65 4d 6f 64 | 69 66 69 65 72 4b 65 79 |gnoreMod|ifierKey| |00000730| 73 09 09 30 78 30 30 30 | 38 09 2f 2f 20 31 20 69 |s..0x000|8.// 1 i| |00000740| 66 20 66 61 64 65 72 20 | 77 69 73 68 65 73 20 75 |f fader |wishes u| |00000750| 73 20 74 6f 20 69 67 6e | 6f 72 65 20 6d 6f 64 69 |s to ign|ore modi| |00000760| 66 69 65 72 73 0d 0d 2f | 2f 20 69 6e 66 6f 20 61 |fiers../|/ info a| |00000770| 62 6f 75 74 20 74 68 65 | 20 6d 61 63 68 69 6e 65 |bout the| machine| |00000780| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 0d |.typedef| struct.| |00000790| 09 7b 0d 09 53 79 73 45 | 6e 76 52 65 63 09 09 74 |.{..SysE|nvRec..t| |000007a0| 68 65 45 6e 76 69 72 6f | 6e 73 3b 09 09 2f 2f 20 |heEnviro|ns;..// | |000007b0| 69 6e 66 6f 20 61 62 6f | 75 74 20 74 68 65 20 6d |info abo|ut the m| |000007c0| 61 63 68 69 6e 65 0d 09 | 57 69 6e 64 6f 77 50 74 |achine..|WindowPt| |000007d0| 72 09 09 66 61 64 65 57 | 69 6e 64 6f 77 3b 09 09 |r..fadeW|indow;..| |000007e0| 09 2f 2f 20 77 68 65 72 | 65 20 74 68 65 20 66 61 |.// wher|e the fa| |000007f0| 64 65 20 69 73 20 74 61 | 6b 69 6e 67 20 70 6c 61 |de is ta|king pla| |00000800| 63 65 0d 09 50 74 72 09 | 09 09 09 61 70 70 6c 69 |ce..Ptr.|...appli| |00000810| 63 61 74 69 6f 6e 51 44 | 3b 09 09 2f 2f 20 61 70 |cationQD|;..// ap| |00000820| 70 20 51 75 69 63 6b 44 | 72 61 77 20 67 6c 6f 62 |p QuickD|raw glob| |00000830| 61 6c 73 0d 09 6c 6f 6e | 67 09 09 09 61 70 70 6c |als..lon|g...appl| |00000840| 69 63 61 74 69 6f 6e 41 | 35 3b 09 09 2f 2f 20 41 |icationA|5;..// A| |00000850| 35 20 66 6f 72 20 74 68 | 65 20 61 70 70 6c 69 63 |5 for th|e applic| |00000860| 61 74 69 6f 6e 0d 09 6c | 6f 6e 67 09 09 09 66 61 |ation..l|ong...fa| |00000870| 64 65 72 4f 70 74 69 6f | 6e 73 3b 09 09 2f 2f 20 |derOptio|ns;..// | |00000880| 6f 70 74 69 6f 6e 73 20 | 66 6f 72 20 74 68 65 20 |options |for the | |00000890| 66 61 64 65 72 20 74 6f | 20 67 69 76 65 20 74 6f |fader to| give to| |000008a0| 20 44 61 72 6b 53 69 64 | 65 0d 09 53 65 74 74 69 | DarkSid|e..Setti| |000008b0| 6e 67 73 50 74 72 09 09 | 66 61 64 65 72 53 65 74 |ngsPtr..|faderSet| |000008c0| 74 69 6e 67 73 3b 09 09 | 2f 2f 20 75 73 65 72 27 |tings;..|// user'| |000008d0| 73 20 73 65 74 74 69 6e | 67 73 20 66 6f 72 20 74 |s settin|gs for t| |000008e0| 68 65 20 66 61 64 65 72 | 0d 09 44 69 61 6c 6f 67 |he fader|..Dialog| |000008f0| 50 74 72 09 09 73 65 74 | 74 69 6e 67 73 44 69 61 |Ptr..set|tingsDia| |00000900| 6c 6f 67 3b 09 09 2f 2f | 20 64 69 61 6c 6f 67 20 |log;..//| dialog | |00000910| 77 69 74 68 20 74 68 65 | 20 73 65 74 74 69 6e 67 |with the| setting| |00000920| 73 0d 09 73 68 6f 72 74 | 09 09 09 73 6f 75 6e 64 |s..short|...sound| |00000930| 56 6f 6c 75 6d 65 3b 09 | 09 2f 2f 20 76 6f 6c 75 |Volume;.|.// volu| |00000940| 6d 65 20 73 65 74 20 62 | 79 20 74 68 65 20 75 73 |me set b|y the us| |00000950| 65 72 0d 09 53 6e 64 43 | 68 61 6e 6e 65 6c 50 74 |er..SndC|hannelPt| |00000960| 72 09 66 61 64 65 72 43 | 68 61 6e 6e 65 6c 3b 09 |r.faderC|hannel;.| |00000970| 09 2f 2f 20 73 6f 75 6e | 64 20 63 68 61 6e 6e 65 |.// soun|d channe| |00000980| 6c 20 61 6c 6c 6f 63 61 | 74 65 64 20 66 6f 72 20 |l alloca|ted for | |00000990| 66 61 64 65 72 27 73 20 | 75 73 65 0d 09 50 74 72 |fader's |use..Ptr| |000009a0| 09 09 09 09 63 61 6c 6c | 62 61 63 6b 4c 6f 61 64 |....call|backLoad| |000009b0| 65 72 3b 09 09 2f 2f 20 | 73 65 67 6d 65 6e 74 20 |er;..// |segment | |000009c0| 6c 6f 61 64 65 72 20 66 | 6f 72 20 74 68 65 20 63 |loader f|or the c| |000009d0| 61 6c 6c 62 61 63 6b 73 | 0d 09 0d 09 73 68 6f 72 |allbacks|....shor| |000009e0| 74 09 09 09 09 6e 75 6d | 53 63 72 65 65 6e 73 3b |t....num|Screens;| |000009f0| 09 09 09 2f 2f 20 68 6f | 77 20 6d 61 6e 79 20 73 |...// ho|w many s| |00000a00| 63 72 65 65 6e 73 20 74 | 68 65 72 65 20 61 72 65 |creens t|here are| |00000a10| 0d 09 53 63 72 65 65 6e | 49 6e 66 6f 09 09 09 74 |..Screen|Info...t| |00000a20| 68 65 53 63 72 65 65 6e | 73 5b 32 30 5d 3b 09 09 |heScreen|s[20];..| |00000a30| 2f 2f 20 69 6e 66 6f 20 | 61 62 6f 75 74 20 65 61 |// info |about ea| |00000a40| 63 68 20 73 63 72 65 65 | 6e 0d 09 7d 20 4d 61 63 |ch scree|n..} Mac| |00000a50| 68 69 6e 65 49 6e 66 6f | 52 65 63 2c 20 2a 4d 61 |hineInfo|Rec, *Ma| |00000a60| 63 68 69 6e 65 49 6e 66 | 6f 50 74 72 3b 0d 09 0d |chineInf|oPtr;...| |00000a70| 0d 2f 2f 20 74 79 70 65 | 64 65 66 73 20 66 6f 72 |.// type|defs for| |00000a80| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 66 61 | the sta|ndard fa| |00000a90| 64 65 72 20 65 6e 74 72 | 79 20 70 6f 69 6e 74 73 |der entr|y points| |00000aa0| 09 0d 4f 53 45 72 72 09 | 50 72 65 66 6c 69 67 68 |..OSErr.|Prefligh| |00000ab0| 74 46 61 64 65 72 28 4d | 61 63 68 69 6e 65 49 6e |tFader(M|achineIn| |00000ac0| 66 6f 50 74 72 20 6d 61 | 63 68 69 6e 65 49 6e 66 |foPtr ma|chineInf| |00000ad0| 6f 2c 20 6c 6f 6e 67 20 | 2a 6d 69 6e 54 69 63 6b |o, long |*minTick| |00000ae0| 73 2c 20 6c 6f 6e 67 20 | 2a 6d 61 78 54 69 63 6b |s, long |*maxTick| |00000af0| 73 29 3b 0d 4f 53 45 72 | 72 09 49 6e 69 74 69 61 |s);.OSEr|r.Initia| |00000b00| 6c 69 7a 65 46 61 64 65 | 72 28 4d 61 63 68 69 6e |lizeFade|r(Machin| |00000b10| 65 49 6e 66 6f 50 74 72 | 20 6d 61 63 68 69 6e 65 |eInfoPtr| machine| |00000b20| 49 6e 66 6f 29 3b 0d 4f | 53 45 72 72 09 49 64 6c |Info);.O|SErr.Idl| |00000b30| 65 46 61 64 65 72 28 4d | 61 63 68 69 6e 65 49 6e |eFader(M|achineIn| |00000b40| 66 6f 50 74 72 20 6d 61 | 63 68 69 6e 65 49 6e 66 |foPtr ma|chineInf| |00000b50| 6f 29 3b 0d 4f 53 45 72 | 72 09 44 69 73 70 6f 73 |o);.OSEr|r.Dispos| |00000b60| 65 46 61 64 65 72 28 4d | 61 63 68 69 6e 65 49 6e |eFader(M|achineIn| |00000b70| 66 6f 50 74 72 20 6d 61 | 63 68 69 6e 65 49 6e 66 |foPtr ma|chineInf| |00000b80| 6f 29 3b 0d 4f 53 45 72 | 72 09 55 70 64 61 74 65 |o);.OSEr|r.Update| |00000b90| 46 61 64 65 72 28 4d 61 | 63 68 69 6e 65 49 6e 66 |Fader(Ma|chineInf| |00000ba0| 6f 50 74 72 20 6d 61 63 | 68 69 6e 65 49 6e 66 6f |oPtr mac|hineInfo| |00000bb0| 29 3b 0d 4f 53 45 72 72 | 09 48 69 74 46 61 64 65 |);.OSErr|.HitFade| |00000bc0| 72 28 4d 61 63 68 69 6e | 65 49 6e 66 6f 50 74 72 |r(Machin|eInfoPtr| |00000bd0| 20 6d 61 63 68 69 6e 65 | 49 6e 66 6f 2c 20 44 69 | machine|Info, Di| |00000be0| 61 6c 6f 67 50 74 72 20 | 64 50 74 72 2c 20 73 68 |alogPtr |dPtr, sh| |00000bf0| 6f 72 74 20 69 74 65 6d | 48 69 74 2c 20 73 68 6f |ort item|Hit, sho| |00000c00| 72 74 20 69 74 65 6d 4f | 66 66 73 65 74 29 3b 0d |rt itemO|ffset);.| |00000c10| 0d 0d 2f 2f 20 55 74 69 | 6c 69 74 69 65 73 0d 48 |..// Uti|lities.H| |00000c20| 61 6e 64 6c 65 09 42 65 | 73 74 4e 65 77 48 61 6e |andle.Be|stNewHan| |00000c30| 64 6c 65 28 53 69 7a 65 | 20 74 68 65 53 69 7a 65 |dle(Size| theSize| |00000c40| 29 3b 0d 52 67 6e 48 61 | 6e 64 6c 65 09 42 65 73 |);.RgnHa|ndle.Bes| |00000c50| 74 4e 65 77 52 67 6e 28 | 29 3b 0d 73 68 6f 72 74 |tNewRgn(|);.short| |00000c60| 20 52 6e 64 28 6c 6f 6e | 67 20 6d 61 78 29 3b 0d | Rnd(lon|g max);.| |00000c70| 76 6f 69 64 20 50 6c 61 | 63 65 52 65 63 74 4f 6e |void Pla|ceRectOn| |00000c80| 53 63 72 65 65 6e 28 0d | 09 4d 61 63 68 69 6e 65 |Screen(.|.Machine| |00000c90| 49 6e 66 6f 50 74 72 20 | 6d 61 63 68 69 6e 65 49 |InfoPtr |machineI| |00000ca0| 6e 66 6f 2c 09 2f 2f 20 | 67 69 76 65 20 69 6e 66 |nfo,.// |give inf| |00000cb0| 6f 20 61 62 6f 75 74 20 | 74 68 65 20 6d 61 63 68 |o about |the mach| |00000cc0| 69 6e 65 20 68 65 72 65 | 0d 09 73 68 6f 72 74 20 |ine here|..short | |00000cd0| 77 69 64 74 68 2c 09 09 | 09 09 2f 2f 20 77 69 64 |width,..|..// wid| |00000ce0| 74 68 20 6f 66 20 72 65 | 63 74 2c 20 63 61 6e 20 |th of re|ct, can | |00000cf0| 62 65 20 30 0d 09 73 68 | 6f 72 74 20 68 65 69 67 |be 0..sh|ort heig| |00000d00| 68 74 2c 09 09 09 09 2f | 2f 20 68 65 69 67 68 74 |ht,..../|/ height| |00000d10| 20 6f 66 20 72 65 63 74 | 2c 20 63 61 6e 20 62 65 | of rect|, can be| |00000d20| 20 30 0d 09 52 65 63 74 | 20 2a 20 70 6c 61 63 65 | 0..Rect| * place| |00000d30| 64 52 65 63 74 2c 09 09 | 09 2f 2f 20 50 6c 61 63 |dRect,..|.// Plac| |00000d40| 65 64 20 72 65 63 74 20 | 69 73 20 72 65 74 75 72 |ed rect |is retur| |00000d50| 6e 65 64 20 68 65 72 65 | 0d 09 52 65 63 74 20 2a |ned here|..Rect *| |00000d60| 20 6d 61 72 67 69 6e 73 | 2c 09 09 09 09 2f 2f 20 | margins|,....// | |00000d70| 6d 61 72 67 69 6e 73 20 | 61 72 6f 75 6e 64 20 73 |margins |around s| |00000d80| 63 72 65 65 6e 2c 20 63 | 61 6e 20 62 65 20 6e 69 |creen, c|an be ni| |00000d90| 6c 0d 09 73 68 6f 72 74 | 20 2a 20 77 68 69 63 68 |l..short| * which| |00000da0| 53 63 72 65 65 6e 29 3b | 09 09 2f 2f 20 73 63 72 |Screen);|..// scr| |00000db0| 65 65 6e 20 69 6e 64 65 | 78 20 72 65 74 75 72 6e |een inde|x return| |00000dc0| 65 64 20 68 65 72 65 2c | 20 63 61 6e 20 62 65 20 |ed here,| can be | |00000dd0| 6e 69 6c 0d 0d 2f 2f 20 | 55 74 69 6c 69 74 69 65 |nil..// |Utilitie| |00000de0| 73 20 74 68 61 74 20 75 | 74 69 6c 69 7a 65 20 63 |s that u|tilize c| |00000df0| 61 6c 6c 62 61 63 6b 73 | 20 69 6e 74 6f 20 44 61 |allbacks| into Da| |00000e00| 72 6b 53 69 64 65 0d 0d | 2f 2f 20 43 61 6c 6c 73 |rkSide..|// Calls| |00000e10| 20 74 6f 20 72 65 61 64 | 20 61 6e 64 20 77 72 69 | to read| and wri| |00000e20| 74 65 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 64 61 |te addit|ional da| |00000e30| 74 61 20 74 6f 2f 66 72 | 6f 6d 20 74 68 65 20 70 |ta to/fr|om the p| |00000e40| 72 65 66 65 72 65 6e 63 | 65 73 20 66 69 6c 65 2e |referenc|es file.| |00000e50| 20 20 0d 2f 2f 20 57 72 | 69 74 65 50 72 65 66 65 | .// Wr|itePrefe| |00000e60| 72 65 6e 63 65 73 48 61 | 6e 64 6c 65 20 64 69 73 |rencesHa|ndle dis| |00000e70| 70 6f 73 65 73 20 6f 66 | 20 74 68 65 20 68 61 6e |poses of| the han| |00000e80| 64 6c 65 20 70 61 73 73 | 65 64 20 69 6e 0d 2f 2f |dle pass|ed in.//| |00000e90| 20 54 68 65 20 68 61 6e | 64 6c 65 20 72 65 74 75 | The han|dle retu| |00000ea0| 72 6e 65 64 20 62 79 20 | 52 65 61 64 50 72 65 66 |rned by |ReadPref| |00000eb0| 65 72 65 6e 63 65 73 48 | 61 6e 64 6c 65 20 73 68 |erencesH|andle sh| |00000ec0| 6f 75 6c 64 20 62 65 20 | 64 69 73 70 6f 73 65 64 |ould be |disposed| |00000ed0| 20 6f 66 20 62 79 20 74 | 68 65 20 63 61 6c 6c 65 | of by t|he calle| |00000ee0| 72 0d 4f 53 45 72 72 09 | 57 72 69 74 65 50 72 65 |r.OSErr.|WritePre| |00000ef0| 66 65 72 65 6e 63 65 73 | 48 61 6e 64 6c 65 28 4d |ferences|Handle(M| |00000f00| 61 63 68 69 6e 65 49 6e | 66 6f 50 74 72 20 6d 61 |achineIn|foPtr ma| |00000f10| 63 68 69 6e 65 49 6e 66 | 6f 2c 20 48 61 6e 64 6c |chineInf|o, Handl| |00000f20| 65 20 68 2c 20 52 65 73 | 54 79 70 65 20 74 68 65 |e h, Res|Type the| |00000f30| 54 79 70 65 29 3b 0d 4f | 53 45 72 72 09 52 65 61 |Type);.O|SErr.Rea| |00000f40| 64 50 72 65 66 65 72 65 | 6e 63 65 73 48 61 6e 64 |dPrefere|ncesHand| |00000f50| 6c 65 28 4d 61 63 68 69 | 6e 65 49 6e 66 6f 50 74 |le(Machi|neInfoPt| |00000f60| 72 20 6d 61 63 68 69 6e | 65 49 6e 66 6f 2c 20 48 |r machin|eInfo, H| |00000f70| 61 6e 64 6c 65 20 2a 68 | 2c 20 52 65 73 54 79 70 |andle *h|, ResTyp| |00000f80| 65 20 74 68 65 54 79 70 | 65 29 3b 0d 0d 2f 2f 20 |e theTyp|e);..// | |00000f90| 70 6c 61 79 20 61 20 27 | 73 6e 64 20 27 20 77 69 |play a '|snd ' wi| |00000fa0| 74 68 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |th the s|pecified| |00000fb0| 20 72 65 73 6f 75 72 63 | 65 20 49 44 20 74 68 72 | resourc|e ID thr| |00000fc0| 6f 75 67 68 20 74 68 65 | 20 73 6f 75 6e 64 20 63 |ough the| sound c| |00000fd0| 68 61 6e 6e 65 6c 20 63 | 72 65 61 74 65 64 0d 2f |hannel c|reated./| |00000fe0| 2f 20 62 79 20 74 68 65 | 20 27 43 68 6e 6c 27 20 |/ by the| 'Chnl' | |00000ff0| 72 65 73 6f 75 72 63 65 | 20 28 69 66 20 70 72 65 |resource| (if pre| |00001000| 73 65 6e 74 29 2e 20 20 | 44 6f 65 73 20 6e 6f 74 |sent). |Does not| |00001010| 68 69 6e 67 20 69 66 20 | 61 20 27 43 68 6e 6c 27 |hing if |a 'Chnl'| |00001020| 20 69 73 20 6e 6f 74 20 | 70 72 65 73 65 6e 74 2c | is not |present,| |00001030| 20 6f 72 0d 2f 2f 20 69 | 66 20 74 68 65 20 75 73 | or.// i|f the us| |00001040| 65 72 20 73 65 74 20 74 | 68 65 20 76 6f 6c 75 6d |er set t|he volum| |00001050| 65 20 74 6f 20 7a 65 72 | 6f 0d 4f 53 45 72 72 09 |e to zer|o.OSErr.| |00001060| 50 6c 61 79 52 65 73 6f | 75 72 63 65 53 6e 64 28 |PlayReso|urceSnd(| |00001070| 4d 61 63 68 69 6e 65 49 | 6e 66 6f 50 74 72 20 6d |MachineI|nfoPtr m| |00001080| 61 63 68 69 6e 65 49 6e | 66 6f 2c 20 73 68 6f 72 |achineIn|fo, shor| |00001090| 74 20 74 68 65 49 44 2c | 20 42 6f 6f 6c 65 61 6e |t theID,| Boolean| |000010a0| 20 61 73 79 6e 63 29 3b | 0d 0d 0d 2f 2a 20 2d 2d | async);|.../* --| |000010b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000010c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000010d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000010e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000010f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00001100| 2d 2d 09 2a 2f 0d 2f 2a | 09 55 73 65 66 75 6c 20 |--.*/./*|.Useful | |00001110| 6d 61 63 72 6f 73 20 66 | 6f 72 20 79 6f 75 72 20 |macros f|or your | |00001120| 66 61 64 65 72 09 09 09 | 09 09 09 09 20 09 09 09 |fader...|.... ...| |00001130| 09 09 09 09 2a 2f 0d 2f | 2a 20 2d 2d 2d 2d 2d 2d |....*/./|* ------| |00001140| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00001150| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00001160| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00001170| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00001180| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 09 2a |--------|------.*| |00001190| 2f 0d 23 64 65 66 69 6e | 65 20 54 6f 70 4c 65 66 |/.#defin|e TopLef| |000011a0| 74 28 61 52 65 63 74 29 | 09 28 2a 20 28 50 6f 69 |t(aRect)|.(* (Poi| |000011b0| 6e 74 20 2a 29 20 26 28 | 61 52 65 63 74 29 2e 74 |nt *) &(|aRect).t| |000011c0| 6f 70 29 0d 23 64 65 66 | 69 6e 65 20 42 6f 74 52 |op).#def|ine BotR| |000011d0| 69 67 68 74 28 61 52 65 | 63 74 29 09 28 2a 20 28 |ight(aRe|ct).(* (| |000011e0| 50 6f 69 6e 74 20 2a 29 | 20 26 28 61 52 65 63 74 |Point *)| &(aRect| |000011f0| 29 2e 62 6f 74 74 6f 6d | 29 0d 23 64 65 66 69 6e |).bottom|).#defin| |00001200| 65 20 52 65 63 74 57 69 | 64 74 68 28 72 29 20 28 |e RectWi|dth(r) (| |00001210| 73 68 6f 72 74 29 28 28 | 72 29 2d 3e 72 69 67 68 |short)((|r)->righ| |00001220| 74 20 2d 20 28 72 29 2d | 3e 6c 65 66 74 29 0d 23 |t - (r)-|>left).#| |00001230| 64 65 66 69 6e 65 20 52 | 65 63 74 48 65 69 67 68 |define R|ectHeigh| |00001240| 74 28 72 29 20 28 73 68 | 6f 72 74 29 28 28 72 29 |t(r) (sh|ort)((r)| |00001250| 2d 3e 62 6f 74 74 6f 6d | 20 2d 20 28 72 29 2d 3e |->bottom| - (r)->| |00001260| 74 6f 70 29 0d 0d 23 65 | 6e 64 69 66 20 5f 5f 46 |top)..#e|ndif __F| |00001270| 41 44 45 52 5f 5f 0d 00 | 00 00 00 00 00 00 00 00 |ADER__..|........| |00001280| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>| |00001290| 00 13 a9 f0 28 f4 3f 3c | 00 13 a9 f0 2a 92 3f 3c |....(.?<|....*.?<| |000012a0| 00 13 a9 f0 2b 20 3f 3c | 00 13 a9 f0 2c 78 3f 3c |....+ ?<|....,x?<| |000012b0| 07 46 61 64 65 72 2e 68 | 02 00 00 00 54 45 58 54 |.Fader.h|....TEXT| |000012c0| 4d 50 53 20 00 0c 00 dc | 00 c0 00 00 00 01 8d 49 |MPS ....|.......I| |000012d0| 00 00 54 45 58 54 4d 50 | 53 20 00 0c 00 dc 00 c0 |..TEXTMP|S ......| |000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000012f0| 00 00 a5 2f 3a 22 00 00 | 11 f7 00 00 01 ac 3f 3c |.../:"..|......?<| |00001300| 00 15 a9 f0 01 50 3f 3c | 00 15 a9 f0 03 e6 3f 3c |.....P?<|......?<| |00001310| 00 15 a9 f0 04 4a 3f 3c | 00 15 a9 f0 0e 48 3f 3c |.....J?<|.....H?<| |00001320| 00 15 a9 f0 22 06 3f 3c | 00 15 a9 f0 30 2e 3f 3c |....".?<|....0.?<| |00001330| 00 15 a9 f0 38 f2 3f 3c | 00 15 a9 f0 3c da 3f 3c |....8.?<|....<.?<| |00001340| 00 15 a9 f0 46 32 3f 3c | 00 15 a9 f0 47 38 3f 3c |....F2?<|....G8?<| |00001350| 00 15 a9 f0 48 5e 3f 3c | 00 15 a9 f0 4b 1a 3f 3c |....H^?<|....K.?<| |00001360| 00 15 a9 f0 5b f8 3f 3c | 00 15 a9 f0 5e 10 3f 3c |....[.?<|....^.?<| |00001370| 00 15 a9 f0 60 6a 3f 3c | 00 15 a9 f0 64 04 3f 3c |....`j?<|....d.?<| |00001380| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 6e 64 61 |...H..Mo|naco.nda| |00001390| 62 6c 65 20 73 63 72 65 | 65 6e 20 73 61 76 65 72 |ble scre|en saver| |000013a0| 2e 0d 09 0d 09 63 00 06 | 00 04 00 2a 00 5b 02 61 |.....c..|...*.[.a| |000013b0| 02 57 00 5a 00 5b 01 9b | 02 a7 a9 c1 d2 0d 00 00 |.W.Z.[..|........| |000013c0| 00 30 00 00 00 30 00 00 | 00 00 01 00 00 00 00 1e |.0...0..|........| |000013d0| 00 2a 00 5b 02 61 02 57 | 00 5a 00 5b 01 9b 02 a7 |.*.[.a.W|.Z.[....| |000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000013f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 c4 |.....n..|.n...>..| |00001400| b1 78 10 88 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |.x......|.>..MPSR| |00001410| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........| |00001420| 03 f0 ff ff 00 00 00 4c | 00 d3 08 14 00 00 00 00 |.......L|........| |00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+